<!DOCTYPE html>
<html lang="${lang,escape}">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
    <meta name="description" content="${AppName!}">
    <title>${AppName!}</title>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="${base!}/assets/platform/plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="${base!}/assets/platform/plugins/element-ui/lib/theme-chalk/index.css">
    <link rel="stylesheet" href="${base!}/assets/platform/fonts/themify-icons.css">
    <link rel="stylesheet" href="${base!}/assets/platform/fonts/font-awesome.min.css">
    <link rel="stylesheet" href="${base!}/assets/platform/css/common.css">
    <link rel="stylesheet" href="${base!}/assets/platform/css/main.css?v=${thisTimes}">
    <link rel="stylesheet" href="${base!}/assets/platform/css/elmain.css">
    <link rel="stylesheet" href="${base!}/assets/platform/css/panel.css">
    <!-- import Vue before Element -->
    <script src="${base!}/assets/platform/plugins/vue/vue.min.js"></script>
    <!-- import JavaScript -->
    <script src="${base!}/assets/platform/plugins/element-ui/lib/index.js"></script>
    <script src="${base!}/assets/platform/plugins/jquery/jquery-1.11.1.min.js"></script>
    <script src="${base!}/assets/platform/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!-- pjax是异步加载html片段的工具,模拟前端路由机制 -->
    <script src="${base!}/assets/platform/plugins/pjax/jquery.pjax.js"></script>
    <script src="${base!}/assets/platform/plugins/bootstrap/js/bootstrap.js"></script>
    <!-- Array数组增加findIndex等方法,TreeTable用得到,兼容IE8 -->
    <script src="${base!}/assets/platform/plugins/polyfill/polyfill.js"></script>
    <!-- 时间日期处理工具类 -->
    <script src="${base!}/assets/platform/plugins/moment/moment.min.js"></script>
    <!-- 浏览器通知 -->
    <script src="${base!}/assets/platform/plugins/push/push.min.js"></script>
    <script src="${base!}/assets/platform/js/main.js"></script>
    <script src="${base!}/assets/platform/js/offscreen.js"></script>
    <!--# if(@shiro.getPrincipalProperty('loginTheme')!=null){ #-->
    <link rel="stylesheet" href="${base!}/assets/platform/css/skins/${@shiro.getPrincipalProperty('loginTheme')}"
          id="skin">
    <!--# }else{ #-->
    <link rel="stylesheet" href="${base!}/assets/platform/css/skins/palette.css" id="skin">
    <!--# } #-->
    <!--#
       var isLeftMenu = false;
       if(@shiro.getPrincipalProperty('menuTheme') == "top"){
           isLeftMenu = false;
       }else if(@shiro.getPrincipalProperty('menuTheme') == "left"){
           isLeftMenu = true;
       }
   #-->
    <script type="text/javascript">
        var base = "${base!}";
        var loginPjax = "${@shiro.getPrincipalProperty('loginPjax')}";
        var isLeftMenu = "${isLeftMenu!}";
    </script>
</head>
<body style="background-color: #ffffff">
<div id="app"  v-cloak style="margin-left: 20px;">
        <el-form :model="formData"  size="mini" label-width="130px" >
            <el-collapse v-model="activeNames" >
                <el-collapse-item title="样品信息" name="1">
                    <el-row :gutter="20" border>
                        <el-col :span="8"><el-form-item prop="jyksbh" label="检验部门">{{formData.jyks}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="zh" label="项目类别">{{getDict(formData.zh,allMap.zhMap)}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="ypbh" label="样品编号">{{formData.ypbh}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="jylx" label="检验类别">{{getDict(formData.jylx,allMap.jylxMap)}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="ypmc" label="产品名称">{{formData.ypmc}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="yplx" label="产品类型">{{getDict(formData.yplx,allMap.yplxMap)}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="bysl" label="备样数量">{{formData.bysl}} {{formData.unit}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="jysl" label="检样数量">{{formData.jysl}} {{formData.unit}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="ypdj" label="样品等级">{{formData.ypdj}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="ypzt" label="样品特性/状态">{{formData.ypzt}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="szcs" label="所在城市">{{getDict(formData.szcs,allMap.xzqhMap)}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="scrqpc" label="原编号/生产日期"><span style="word-wrap: break-word;">{{formData.scrqpc}}</span></el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="ggxh" label="规格型号">{{formData.ggxh}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item  prop="cyry" label="企业联系人">{{formData.cyry}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="jyfdb" label="企业联系方式">{{formData.jyfdb}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="sb" label="商标">{{formData.sb}}</el-form-item></el-col>
                    </el-row>
                    <el-row :gutter="20" v-if="formData.jylx=='jdcc' || formData.jylx=='jbts'|| formData.jylx=='zxzz'">
                        <el-col :span="8"><el-form-item prop="cydw" label="抽样单位">{{formData.cydw}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="cyryBy" label="抽样人员">{{formData.cyryBy}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="cyrq" label="抽样日期">{{formData.cyrq}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="cydbh" label="抽样单编号">{{formData.cydbh}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="cyjs" label="抽样基数">{{formData.cyjs}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="cydd" label="抽样地点">{{formData.cydd}}</el-form-item></el-col>
                    </el-row>
                </el-collapse-item>
                <el-collapse-item title="厂家信息" name="2">
                    <el-row :gutter="20">
                        <el-col :span="8"><el-form-item prop="wtdw" label="委托单位">{{formData.wtdw}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="wtdwdz" label="委托单位地址">{{formData.wtdwdz}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="wtdwlxr" label="委托单位法人">{{formData.wtdwlxr}}</el-form-item></el-col>
                    </el-row>
                    <el-row :gutter="20">
                        <el-col :span="8"><el-form-item prop="wtdwsj" label="委托单位信用代码">{{formData.wtdwsj}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="wtdwdh" label="委托单位电话">{{formData.wtdwdh}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="wtdwyb" label="委托单位邮编">{{formData.wtdwyb}}</el-form-item></el-col>
                    </el-row>
                    <el-row :gutter="20">
                        <el-col :span="8"><el-form-item prop="sjdw" label="受检单位">{{formData.sjdw}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="sjdwdz" label="受检单位地址">{{formData.sjdwdz}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="sjdwlxr" label="受检单位法人">{{formData.sjdwlxr}}</el-form-item></el-col>
                    </el-row>
                    <el-row :gutter="20">
                        <el-col :span="8"><el-form-item prop="sjdwsj" label="受检单位信用代码">{{formData.sjdwsj}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="sjdwdh" label="受检单位电话">{{formData.sjdwdh}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="sjdwyb" label="受检单位邮编">{{formData.sjdwyb}}</el-form-item></el-col>
                    </el-row>
                    <el-row :gutter="20">
                        <el-col :span="8"><el-form-item prop="scdw" label="生产单位">{{formData.scdw}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="scdwdz" label="生产单位地址">{{formData.scdwdz}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="scdwlxr" label="生产单位法人">{{formData.scdwlxr}}</el-form-item></el-col>
                    </el-row>
                    <el-row :gutter="20">
                        <el-col :span="8"><el-form-item prop="scdwsj" label="生产单位信用代码">{{formData.scdwsj}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="scdwdh" label="生产单位电话">{{formData.scdwdh}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="scdwyb" label="生产单位邮编">{{formData.scdwyb}}</el-form-item></el-col>
                    </el-row>
                </el-collapse-item>

                <el-collapse-item title="检验信息" name="3">
                    <el-row :gutter="20">
                        <el-col :span="16"><el-form-item prop="jyxm" label="检验项目"></el-input>{{formData.jyxm}}</el-form-item></el-col>
                        <el-col :span="8" style=""><el-button type="primary" size="mini" @click="insVisible = true" plain>检验项目明细</el-button></el-col>
                        <el-col :span="24"><el-form-item prop="jyyj" label="检验依据">{{formData.jyyj}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="jyfy" label="检验费用（元）">{{formData.jyfy}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="jyfydd" label="检验费用待定"><span v-if="formData.jyfydd==0">待定</span><span v-else>不待定</span></el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="yhxtk" label="样品处置">{{getDict(formData.yhxtk,allMap.ypczMap)}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="jyhth" label="检验合同号">{{formData.jyhth}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="jcfyry" label="检查封样人员">{{formData.jcfyry}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="bgfsfs" label="报告领取"><span v-if="formData.bgfsfs==0">邮寄</span><span v-else>自取</span></el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="dyrq" label="到样日期">{{formData.dyrq}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="wcqx" label="完成期限">{{formData.wcqx}}</el-form-item></el-col>
                        <el-col :span="8"><el-form-item prop="limitDay" label="检验时限">{{formData.limitDay}} <span v-if="formData.limitDay">个工作日</span></el-form-item></el-col>

                        <el-col :span="24"><el-form-item prop="bz" label="报告备注">{{formData.bz}}</el-form-item></el-col>

                        <el-col :span="24"><el-form-item prop="tssm" label="其它说明">{{formData.tssm}}</el-form-item></el-col>
                    </el-row>
                </el-collapse-item>
                <el-collapse-item title="其他委托信息" name="4">
                    <el-row :gutter="20">
                        <el-col :span="8">
                            <el-form-item prop="validity" label="有效期/保质期">{{formData.validity}}</el-form-item>
                        </el-col>
                        <el-col :span="8">
                            <el-form-item prop="packing" label="包装">{{formData.packing}}</el-form-item>
                        </el-col>
                        <el-col :span="8">
                            <el-form-item prop="storage" label="样品贮存">{{getDict(formData.storage,allMap.storageMap)}}</el-form-item>
                        </el-col>
                        <el-col :span="8">
                            <el-form-item prop="information" label="提供的资料">{{getDict(formData.information,allMap.informationMap)}}</el-form-item>
                        </el-col>
                        <el-col :span="8">
                            <el-form-item prop="subcontract" label="分包方名称">{{formData.subcontract}}</el-form-item>
                        </el-col>
                        <el-col :span="8">
                            <el-form-item prop="intention" label="客户意向">{{getDict(formData.intention,allMap.intentionMap)}}</el-form-item>
                        </el-col>
                        <el-col :span="8">
                            <el-form-item prop="exterior" label="样品外观">{{getDict(formData.exterior,allMap.exteriorMap)}}</el-form-item>
                        </el-col>
                        <el-col :span="24">
                            <el-form-item prop="xysRemark" label="协议书备注">{{formData.xysRemark}}</el-form-item>
                        </el-col>
                    </el-row>
                </el-collapse-item>
                <el-collapse-item title="移交信息" name="5">
                    <template v-if="lzxxlist.length>0">
                        <el-row :gutter="20">
                            <el-col :span="12">
                                <el-form-item prop="jywcrq" label="检验完成日期">{{formData.jywcrq}}</el-form-item>
                            </el-col>
                            <el-col :span="12">
                                <el-form-item prop="byczqk" label="试毕样品处理情况">{{formData.byczqk}}</el-form-item>
                            </el-col>
                            <el-col :span="12">
                                <el-form-item prop="bgbh" label="生成报告编号">{{formData.bgbh}}</el-form-item>
                            </el-col>
                            <el-col :span="12">
                                <el-form-item prop="sfty" label="是否退样"><span v-if="formData.sfty==0">是</span><span v-else>否</span></el-form-item>
                            </el-col>
                        </el-row>
                        <el-row :gutter="20">
                            <el-table :data="lzxxlist" border size="small" header-align="center"  style="width: 100%">
                                <el-table-column label="阶段" min-width="130px;" header-align="center" align="center" show-overflow-tooltip>
                                    <template slot-scope="scope" >
                                        <span :class="'lzstatusCss-'+scope.row.lzzt"><i :class="'lzel-icon-'+scope.row.lzzt"/>{{getDict(scope.row.lzzt,allMap.lzztMap)}}</span>
                                    </template>
                                </el-table-column>
                                <el-table-column label="接收状态" min-width="80px;" header-align="center" align="center" show-overflow-tooltip>
                                    <template slot-scope="scope" >
                                        <span v-if="scope.row.status=='0'">待接收</span>
                                        <span v-if="scope.row.status=='1'">接收</span>
                                        <span v-if="scope.row.status=='-1'">拒收</span></template>
                                </el-table-column>
                                <el-table-column prop="username" label="移交人" width="100px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                                <el-table-column prop="usertime" label="操作时间" width="140px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                                <el-table-column prop="lzat" label="移交时间" width="140px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                                <el-table-column prop="number" label="移交数量" width="80px;" header-align="center" align="center" show-overflow-tooltip>
                                    <template slot-scope="scope" v-if="scope.row.number">
                                        {{scope.row.number}} {{formData.unit}}
                                    </template>
                                </el-table-column>
                                <el-table-column prop="spyj" label="备注" min-width="300px;"  show-overflow-tooltip></el-table-column>
                                <el-table-column prop="nextspr" label="接收人" width="100px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                                <el-table-column prop="statusat" label="接收时间" width="140px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                                <el-table-column prop="jsbz" label="备注" min-width="300px;"  show-overflow-tooltip></el-table-column>
                            </el-table>
                        </el-row>
                    </template>
                    <template v-else>
                        <el-row :gutter="20">
                            <el-col align="center">未移交</el-col>
                        </el-row>
                    </template>
                </el-collapse-item>
                <!--<el-collapse-item title="收费记录" name="6" >
                    <template v-if="formData.sfzt>0">
                        <el-table :data="sfxxlist" border size="small" header-align="center"  style="width: 100%">
                            <el-table-column prop="jfrq" label="缴费日期" min-width="120px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                            <el-table-column prop="bcss" label="收费金额（元）" min-width="120px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                            <el-table-column prop="jffs" label="缴费方式" min-width="120px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                            <el-table-column prop="pzh" label="缴费凭证" min-width="120px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                            <el-table-column prop="pjfl" label="票据分类" min-width="120px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                            <el-table-column prop="pjhm" label="票据号码" min-width="120px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                        </el-table>
                    </template>
                    <template v-else>
                        <el-row :gutter="20">
                            <el-col align="center">无收费记录</el-col>
                        </el-row>
                    </template>
                </el-collapse-item>-->
                <el-collapse-item title="报告信息" name="7">
                    <template v-if="formData.lczt>4">
                        <el-row :gutter="20" style="margin-top: 20px;">
                            <el-col :span="12">
                                <el-form-item prop="bgbh" label="报告编号">{{formData.bgbh}}</el-form-item>
                            </el-col>
                            <el-col :span="12">
                                <el-form-item label="检验日期">
                                    {{formData.jyrq}}
                                </el-form-item>
                            </el-col>
                            <el-col :span="12">
                                <el-form-item label="检验结果">
                                        <span v-if="formData.jyjg=='0'">合格</span>
                                        <span v-if="formData.jyjg=='1'">不合格</span>
                                        <span v-if="formData.jyjg=='2'">不判定</span>
                                </el-form-item>
                            </el-col>
                            <el-col :span="24">
                                <el-form-item label="检验结论">
                                    {{formData.jyjl}}
                                </el-form-item>
                            </el-col>
                            <el-col :span="24">
                                <el-form-item label="检验情况说明">
                                    {{formData.jyqksm}}
                                </el-form-item>
                            </el-col>
                        </el-row>
                        <el-row :gutter="20">
                            <el-col :span="16">
                                <el-form-item label="检验报告查看">
                                    <el-link type="success" size="mini" @click="openReport(formData)">报告查看</el-link>
                                </el-form-item>
                            </el-col>
                        </el-row>
                    </template>
                    <template v-else>
                        <el-row :gutter="20">
                            <el-col align="center">未生成报告</el-col>
                        </el-row>
                    </template>
                </el-collapse-item>
                <el-collapse-item title="报告流程信息" name="8">
                    <template v-if="formData.lczt>0">
                        <el-table :data="lcxxlist" border size="small" header-align="center"  style="width: 100%">
                        <el-table-column prop="username" label="操作人" width="100px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                        <el-table-column prop="usertime" label="操作时间" width="180px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                        <el-table-column label="阶段" min-width="130px;" header-align="center" align="center" show-overflow-tooltip>
                            <template slot-scope="scope" >
                                <span :class="'statusCss-'+scope.row.lczt"><i :class="'el-icon-'+scope.row.lczt"/>{{getDict(scope.row.lczt,allMap.lcztMap)}}</span>
                            </template>
                        </el-table-column>
                        <el-table-column prop="nextspr" label="下一步操作人" width="100px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                        <el-table-column prop="jyry" label="检验人员" width="100px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
                        <el-table-column prop="spyj" label="操作意见" min-width="300px;"  show-overflow-tooltip></el-table-column>
                    </el-table>
                    </template>
                    <template v-else>
                        <el-row :gutter="20">
                            <el-col align="center">无流程</el-col>
                        </el-row>
                    </template>
                </el-collapse-item>
            </el-collapse>
        </el-form>
    <el-drawer :wrapperClosable="false" :title="deltailName" :visible.sync="drawer" direction="rtl" size="80%" @opened="openIframe" destroy-on-close>
        <iframe id="iframeDetail"  src="" width="100%" height="100%" frameborder="0" marginheight="0" ></iframe>
    </el-drawer>
    <el-dialog :close-on-click-modal="false" title="检验项目" :visible.sync="insVisible" width="80%">
        <el-table :data="multipleSelectionOld"  height="400"  border size="small" header-align="center"  style="width: 100%" >
            <el-table-column   prop="productName" label="产品名称" min-width="110px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
            <el-table-column  prop="inspectionStandard" label="检验标准" min-width="110px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
            <el-table-column   prop="inspectionItemName" label="检验项目" min-width="110px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
            <el-table-column prop="inspectionItemOrder" label="附页序号" min-width="90px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
            <el-table-column   prop="frequency" label="检验次数" min-width="120px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
            <el-table-column   prop="price" label="检验费用（元）" min-width="120px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
            <el-table-column   prop="inspectionPrice" label="原检验费用" min-width="120px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
            <el-table-column   prop="inspectionCycle" label="检验周期（天）" min-width="120px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
            <el-table-column   prop="productTypeName" label="产品类型" min-width="110px;" header-align="center" align="center" show-overflow-tooltip>
                <template slot-scope="scope">
                    {{getDict(scope.row.productTypeCode,allMap.yplxMap)}}
                </template>
            </el-table-column>
            <el-table-column   prop="specification" label="规格型号" min-width="110px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
            <el-table-column   prop="sampleCount" label="样品数量" min-width="110px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
            <el-table-column   prop="chargeStandardName" label="收费标准" min-width="110px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
            <el-table-column   prop="countUnit" label="计量单位" min-width="110px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
            <el-table-column   prop="environmentStandard" label="环境要求" min-width="110px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
            <el-table-column   prop="remark" label="备注" min-width="110px;" header-align="center" align="center" show-overflow-tooltip></el-table-column>
        </el-table>
    </el-dialog>
</div>
<script>
    new Vue({
        el: "#app",
        data: function () {
            var allMap = {yplxMap:${yplxMap},zhMap:${zhMap},xzqhMap:${xzqhMap},ypczMap:${ypczMap},
                jylxMap:${jylxMap},lcztMap:${lcztMap},lzztMap:${lzztMap},storageMap:${storageMap},informationMap:${informationMap},
                intentionMap:${intentionMap},exteriorMap:${exteriorMap}};
            return {
                activeNames: ['1','2','3','5','7','8'],
                active: 0,
                allMap:allMap,
                formData: ${obj},
                lzxxlist:${lzxxlist},
                lcxxlist:${lcxxlist},
                sfxxlist:${sfxxlist},
                drawer: false,
                deltailURL:"",
                deltailName:"",
                multipleSelectionOld:${obj.yjbxxjyxm},
                insVisible:false,
            }
        },
        methods: {
            openIframe:function(){
                $("#iframeDetail").attr("src",this.deltailURL);
            },
            openReport:function(obj){
                this.drawer=true;
                this.deltailName="查看报告"+obj.ypbh;
                var WOPISrc = "${AppDomain!}/platform/wopi/files/"+obj.id+".docx";
                this.deltailURL="${AppOfficeDomain!}/wv/wordviewerframe.aspx?wdAccPdf=1&WOPISrc="+WOPISrc+"&_="+Math.floor(Math.random()*100000);
            },
            getDict: function (val,map) {
                if (val!= null && val!=undefined &&val!="" &&val!="null" &&val!="undefined" && map!=null && map !=undefined){
                    var str = val.split(",");
                    var strname="";
                    for (var a=0;a<str.length;a++){
                        strname+=map[str[a]];
                        if(strname == null){
                            alert(1)
                        }
                        if(a<(str.length-1)){
                            strname+="/";
                        }
                    }
                    return strname;
                }
                return "";
            }
        }
    });
</script>
</body>
</html>
